import {
    HTTP
} from '../utils/http.js'
import {
    urlapi
} from '../apiconfig.js'

class supplyModel extends HTTP {
    //获取一级
    getFirstcategory(token) {
        return this.request({
            url: urlapi.firstcategory,
            data: {
                token: token
            }
        })
    }
    // 获取二级
    getSecondcategory(token,fid) {
        return this.request({
            url: urlapi.secondcategory,
            data: {
                token: token,
                fid: fid,
            }
        })
    }
    // 获取三级
    getThirdcategory(token,sid) {
        return this.request({
            url: urlapi.thirdcategory,
            data: {
                token: token,
                sid: sid,
            }
        })
    }


}

export {
    supplyModel
}
